home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1993 November
/
1993-11.d64
/
data generator
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
60 lines
100 poke53280,6:poke53281,6:printchr$(14)chr$(8)
110 dv=peek(186):if dv<8 then dv=8
120 print"[147][159] [196]ata [199]enerator"
130 print" by "
140 print " [202]ames [212]. [202]ones":print
150 print"[213]se this program to generate 20":print
160 print"lines of data to replace part of":print
170 print"the original data for the program,":print
180 print"'[212]he [213]nbreakable [195]ipher', on this":print
190 print"issue of [199]azette [196]isk. ([196]epending":print
200 print"on how often data are used, periodic":print
210 print"replacement is advisable to keep":print
220 print"the system secure.)":print
230 print"[159] [208]ress <space> to continue"
240 geta$:ifa$<>" "then240
250 print"[147][193]fter the 20 lines are displayed":print
260 print"on the screen, type [158]new on the":print
270 print"blank line following the last line":print
280 print"of data and press <[210][197][212][213][210][206]>.":print
290 print"[193]ll 20 lines of data should still":print
300 print"be on the screen. [198]or each line, press":print
310 print"<[210][197][212][213][210][206]> in order that the line will be":print
320 print"entered into memory. [211]ave the block of":print
330 print"data as a separate program. [212]he block":print
340 print"of data can then be merged with the":print
350 print"primary program, after the original":print
360 print"[159] [208]ress <space> to continue"
370 geta$:ifa$<>" "then370
380 print"[147]lines (5000-5100) of data have been":print
390 print"deleted.":print
400 print"[212]his procedure can be repeated":print
410 print"until a sufficient number of lines":print
420 print"of data are generated. ([211]ix blocks":print
430 print"of new data will suffice.)":print
440 print"[217]our system for enciphering will then"
450 print"be secure from other [199]azette [196]isk":print
460 print"users! [201]f you do not have a program":print
470 print"for merging programs, check the past":print
480 print"issues of [199]azette [196]isk.":print
490 print"[159] [208]ress <space> to continue"
500 geta$:ifa$<>" "then500
510 print"[147][212]he lines of data will be numbered":print
520 print"sequentially beginning with the line":print
530 print"number that you specify. [212]he beginning":print
540 input"line number is";ln
550 fora=0to1
560 forr=0to9
570 forc=0to9:p$(a,r,c)=chr$(int(rnd(0)*43+48))
580 ifp$(a,r,c)=":"orp$(a,r,c)=";"thenp$(a,r,c)=chr$(int(rnd(0)*26+65))
590 ifp$(a,r,c)="<"orp$(a,r,c)="="thenp$(a,r,c)=chr$(int(rnd(0)*26+65))
600 ifp$(a,r,c)=">"orp$(a,r,c)="@"thenp$(a,r,c)=chr$(int(rnd(0)*26+65))
610 ifp$(a,r,c)="?"thenp$(a,r,c)=chr$(int(rnd(0)*25+65))
620 nextc,r
630 forr=0to9
640 printr+ln" data ";:forc=0to9:printp$(a,r,c)",";:ifc=9thenprintp$(a,r,c);
650 nextc:print
660 next r
670 ln=ln+10
680 nexta